﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ReBasic.Model
{
    public class SortInstance:IComparable<SortInstance>
    {
        public string instance;
        public double value;

        #region IComparable<SortInstance> 成员

        public SortInstance(string a, double b)
        {
            instance = a;
            value = b;
        }

        public int CompareTo(SortInstance other)
        {
            return -value.CompareTo(other.value);
        }

        #endregion
    }
}
